﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Collections;

namespace LCA.Community.Utils.Testing
{
    public static class CollectionAssertExtension
    {
        public static void HaveSameElements<T>(List<T> actual, List<T> expected)
        {
            Assert.AreEqual(actual.Count, expected.Count);

            foreach (var item in actual)
            {
                CollectionAssert.Contains(expected,item);
            }
        }
    }
}
